package com.mysteel.authserver.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * ProjectName: mail
 * ClassName: AuthWebConfig
 * Description:
 * date: 2021/02/22/022 19:57
 *
 * @author xiaochao
 */
@Configuration
public class AuthWebConfig implements WebMvcConfigurer {
    /**
     * 映射直接跳转页面的请求URL
     * @GetMapping({"/reg","reg.html"})
     * public String toLogin(){
     *     return "reg";
     * }
     * @param registry
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
